{% extends "base.html" %}


{% block headtitle %}Login{% endblock %}

{% block breadcrumbs %}
<li><a href="/">Home</a></li>
<li><a href="/account">Account</a></li>
<li><a href="/account/login">Login</a></li>
{% endblock %}

{% block main_content %}

<div class="loginform">

    {% if form.errors %}
<p>Your username and password didn't match. Please try again.</p>
{% endif %}
  <form method="post" action="/account/login">
  {% csrf_token %}
  <fieldset>
    <p> <span class="top">{{ form.username.label_tag }}</span><br />
        <span class="field">{{ form.username }}</span></p>
    <p><span class="top">{{ form.password.label_tag }}</span><br />
        <span class="field">{{ form.password }}</span></p>
    <p><input type="checkbox" name="rememberme" value="0" />Remember Me</p>
    <p><input type="submit" name="cmdweblogin" class="button" value="login"  /></p>
  </fieldset>
  <input type="hidden" name="next" value="{{ next }}" />
  </form>
  <p class="center">Not a member yet, you can <a href="/account/create">create an acount</a>.</p>
  <p class="center">Forgot your password? Click <a href="/account/passwordreset">here to reset it</a>.</p>
</div>

{% endblock %}